package com.camus.verify.bo;

import java.util.List;

import com.camus.verify.entity.VerifyTask;

import lombok.Data;

@Data
public class MatchParam<L, R> {
	// 源数据
	private VerifyTask task;
	private int leftSize;
	private int rightSize;
	private List<L> leftList;
	private List<R> rightList;

	public static <L, R> MatchParam<L, R> of(VerifyTask task, List<L> leftList, List<R> rightList) {
		MatchParam<L, R> param = new MatchParam<L, R>();
		param.task = task;
		param.leftList = leftList;
		param.leftSize = leftList.size();
		param.rightList = rightList;
		param.rightSize = rightList.size();
		return param;
	}

}
